package demo.dao;

import demo.pojo.Brand;
import demo.pojo.Comm;
import demo.pojo.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName 刘星宇
 * @Description TODO
 * @date 2023/4/2 18:12
 * @Version 1.0
 */
public interface CommMapper {
    //分页查询
    int getCount(@Param("param") Comm comm);
    List<Comm> getAllByPage(@Param("page") Page<Comm> p, @Param("param") Comm comm);
    //新增
    void CommAdd(Comm c);
    //修改
    void CommUpdate(Comm c);
    //删除
    void CommDel(int cid);
    Brand selectByBid(Integer bid);
    List<Brand> selectAllBrand();
}
